package Course9;

public class Method {
    public static int bigger(int num1,int num2) {
        int num3;
        if(num1>num2){
            num3=num1;
        }
        else{
            num3=num2;
        }
        return num3;

    }

    public static double bigger(double num1,double num2){
        double num3;
        if(num1>num2){
            num3=num1;
        }
        else{
            num3=num2;
        }
        return num3;

    }
    public static void tianti(double num4){
        if(num4>5000)
        {
            System.out.println("最强王者");
        }
        else if(num4>4000){
            System.out.println(("至尊星耀"));
        }
        else{
            System.out.println("星耀以下都是鱼塘");
        }
    }

    public static void main(String[] args) {
        int x=bigger(35,25);
        System.out.println(x);
        double y=bigger(30.02,40);
        System.out.println(y);
        tianti(600);
    }
}
